package Practica8.Sintactico;

import java.io.IOException;

import org.antlr.runtime.ANTLRFileStream;
import org.antlr.runtime.CharStream;
import org.antlr.runtime.CommonTokenStream;
import org.antlr.runtime.RecognitionException;

public class App 
{
    public static void main( String[] args )
    {
    	try {
			CharStream input = new ANTLRFileStream(args[0]);
			AnalexCLexer lexer = new AnalexCLexer(input);
			CommonTokenStream tokens = new CommonTokenStream(lexer);
			AnalexCParser parser = new AnalexCParser(tokens);
			
			parser.entrada();
    	}catch(RecognitionException ae){
    		System.out.println("Error gramatical");
    	
		}catch(IOException e) {
			System.err.println("Error");
		}
    }
}
